package com.hspedu.extends_.improve_;

import com.hspedu.extends_.Graduate;
import com.hspedu.extends_.Pupil;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/20
 * @time 19:48
 */
public class Extends01 {
    public static void main(String[] args) {
        com.hspedu.extends_.Pupil pupil = new Pupil();
        pupil.name = "小明~";
        pupil.age = 11;
        pupil.testing();
        pupil.setScore(70);
        pupil.showInfo();

        com.hspedu.extends_.Graduate graduate = new Graduate();
        graduate.name = "大明~";
        graduate.age = 23;
        graduate.testing();
        graduate.setScore(120);
        graduate.showInfo();
    }
}
